<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" />
    <title>支付跳转</title>
    <meta name="viewport" content="width=device-width,initial-scale=2.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>

</head>
<body>
<span th:utext="${payinfo}"></span>

<button type="button" id="btn" onclick="submit()" >submit</button>

<script type="text/javascript">
    function submit(){
        var formElement = document.getElementsByTagName("form")[0];
        formElement.submit();
    };

    submit();
</script>
</body>
</html>